class Animal(object):
    def __init__(self, name,age):
        self.name = name
        self.age = age

    def eat(self):
        print(f"{self.name}吃东西")

class Cat(Animal):
    def eat(self):
        super().eat()
        print(f"{self.name}更喜欢吃鱼")

tom = Cat("汤姆",3)

tom.eat()